<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 13:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>

    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>添加分销商</title>

    <script type="text/javascript" src="/static/js/distributor/distributor.js"></script>
    <style>
        .select_side{float:left; width:200px}
        select{width:180px; height:120px}
        .select_opt{float:left; width:40px; height:100%; margin-top:36px}
        .select_opt p{width:26px; height:26px; margin-top:6px; background:url(arr.gif) no-repeat;
            cursor:pointer; text-indent:-999em}
        .select_opt p#toright{background-position:2px 0}
        .select_opt p#toleft{background-position:2px -22px}
    </style>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="tid" name="tid" value="${distributor.tid}" type="hidden">





        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${distributor.name}" id="userName" name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>电话：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${distributor.phone}" id="phone" name="phone">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>二维码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <c:if test="${!empty distributor.sourceQRCode}">
                <img src="${picPath}${distributor.sourceQRCode}"/>
                </c:if>
                ${distributor.code}
              <%--  <a href="javascript:void(0);" onclick="createsourceQRCode(${user.tid});">生成二维码</a>--%>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${distributor.address}" id="userAddress" name="address">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>级别：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="distributorType" id="distributorType">
                    <option value="" ${distributor.distributorType==""?"selected":""}>无</option>
                    <option value="1" ${distributor.distributorType==1?"selected":""}>一级</option>
                    <option value="2" ${distributor.distributorType==2?"selected":""}>二级</option>
                    <option value="3" ${distributor.distributorType==3?"selected":""}>三级</option>
                    <option value="4" ${distributor.distributorType==4?"selected":""}>四级</option>
                    <option value="5" ${distributor.distributorType==5?"selected":""}>五级</option>
                    <option value="6" ${distributor.distributorType==6?"selected":""}>六级</option>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>活动：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="activityId" value="${distributor.activityId}" id="activityId">

                <div class="select_side">
                    <p>待选区</p>
                    <select id="selectL" name="selectL" multiple="multiple">
<c:forEach var="item" items="${activityList}">
                        <option value="${item.tid}">${item.name}</option>
</c:forEach>
                    </select>
                </div>
                <div class="select_opt">
                    <p id="toright" title="添加">></p>
                    <p id="toleft" title="移除"><</p>
                </div>
                <div class="select_side">
                    <p>已选区</p>
                    <select id="selectR" name="selectR" multiple="multiple">
                    </select>
                </div>
            </div>
        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>上级分销商：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="superiorId" id="superiorId">

                </select>
            </div>
        </div>




        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
